import request from '@/utils/request'

// 获取角色
export const getAllTeacherInfo = params => {
  return request({
    method: 'GET',
    url: '/user/getAllUserInfo',
    params
  })
}

// 删除角色
export const delTeacherInfo = params => {
  return request({
    method: 'DELETE',
    url: "/user/delUserInfo",
    params
  })
}

// 添加教师
export const addAdmin = data => {
  return request({
    method: 'POST',
    url: '/user/addAdmin',
    data
  })
}
// 编辑教师
export const editTeacherInfo = data => {
  return request({
    method: 'POST',
    url: '/user/editUserInfo',
    data
  })
}


// 停用教师
export const disableTeacherInfo = data => {
  return request({
    method: 'POST',
    url: '/user/disableUserInfo',
    data
  })
}

export const getPositionList = () => {
  return request({
    method: 'GET',
    url: '/user/getPositionList'
  })
}